#!/bin/sh

sudo docker pull  registry.cn-qingdao.aliyuncs.com/qijunbo/jdk:8.r1
sudo docker tag   registry.cn-qingdao.aliyuncs.com/qijunbo/jdk:8.r1  sunway/jdk:8.r1
sudo docker pull  registry.cn-hangzhou.aliyuncs.com/qijunbo/eureka 
sudo docker tag   registry.cn-hangzhou.aliyuncs.com/qijunbo/eureka   sunway/eureka
branch=$1
if [ -z "${branch}" ]; then
   echo "[error:] pleae add branch when you commit."
   echo "[usage:] $0 <branch>"    	
   exit 1
fi

git checkout "${branch}"
git pull 
git branch 
